Integrand size = 19, antiderivative size = 49 \[ \int \sec ^4(a+b x) (d \tan (a+b x))^n \, dx=\frac {(d \tan (a+b x))^{1+n}}{b d (1+n)}+\frac {(d \tan (a+b x))^{3+n}}{b d^3 (3+n)} \]
Time = 0.86 (sec) , antiderivative size = 78, normalized size of antiderivative = 1.59 \[ \int \sec ^4(a+b x) (d \tan (a+b x))^n \, dx=\frac {d (d \tan (a+b x))^{-1+n} \left ((2+n+\cos (2 (a+b x))) \sec ^2(a+b x) \tan ^2(a+b x)+2 \left (-\tan ^2(a+b x)\right )^{\frac {1-n}{2}}\right )}{b (1+n) (3+n)} \]
(d*(d*Tan[a + b*x])^(-1 + n)*((2 + n + Cos[2*(a + b*x)])*Sec[a + b*x]^2*Ta n[a + b*x]^2 + 2*(-Tan[a + b*x]^2)^((1 - n)/2)))/(b*(1 + n)*(3 + n))
Time = 0.25 (sec) , antiderivative size = 47, normalized size of antiderivative = 0.96, number of steps used = 5, number of rules used = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.211, Rules used = {3042, 3087, 244, 2009}
Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.
\(\displaystyle \int \sec ^4(a+b x) (d \tan (a+b x))^n \, dx\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \int \sec (a+b x)^4 (d \tan (a+b x))^ndx\) |
\(\Big \downarrow \) 3087 |
\(\displaystyle \frac {\int (d \tan (a+b x))^n \left (\tan ^2(a+b x)+1\right )d\tan (a+b x)}{b}\) |
\(\Big \downarrow \) 244 |
\(\displaystyle \frac {\int \left ((d \tan (a+b x))^n+\frac {(d \tan (a+b x))^{n+2}}{d^2}\right )d\tan (a+b x)}{b}\) |
\(\Big \downarrow \) 2009 |
\(\displaystyle \frac {\frac {(d \tan (a+b x))^{n+3}}{d^3 (n+3)}+\frac {(d \tan (a+b x))^{n+1}}{d (n+1)}}{b}\) |
3.4.64.3.1 Defintions of rubi rules used
Int[((c_.)*(x_))^(m_.)*((a_) + (b_.)*(x_)^2)^(p_.), x_Symbol] :> Int[Expand Integrand[(c*x)^m*(a + b*x^2)^p, x], x] /; FreeQ[{a, b, c, m}, x] && IGtQ[p , 0]
Int[sec[(e_.) + (f_.)*(x_)]^(m_)*((b_.)*tan[(e_.) + (f_.)*(x_)])^(n_.), x_S ymbol] :> Simp[1/f Subst[Int[(b*x)^n*(1 + x^2)^(m/2 - 1), x], x, Tan[e + f*x]], x] /; FreeQ[{b, e, f, n}, x] && IntegerQ[m/2] && !(IntegerQ[(n - 1) /2] && LtQ[0, n, m - 1])
Time = 56.74 (sec) , antiderivative size = 58, normalized size of antiderivative = 1.18
method | result | size |
derivativedivides | \(\frac {\tan \left (b x +a \right ) {\mathrm e}^{n \ln \left (d \tan \left (b x +a \right )\right )}}{b \left (1+n \right )}+\frac {\left (\tan ^{3}\left (b x +a \right )\right ) {\mathrm e}^{n \ln \left (d \tan \left (b x +a \right )\right )}}{b \left (3+n \right )}\) | \(58\) |
default | \(\frac {\tan \left (b x +a \right ) {\mathrm e}^{n \ln \left (d \tan \left (b x +a \right )\right )}}{b \left (1+n \right )}+\frac {\left (\tan ^{3}\left (b x +a \right )\right ) {\mathrm e}^{n \ln \left (d \tan \left (b x +a \right )\right )}}{b \left (3+n \right )}\) | \(58\) |
risch | \(\text {Expression too large to display}\) | \(5283\) |
Time = 0.26 (sec) , antiderivative size = 61, normalized size of antiderivative = 1.24 \[ \int \sec ^4(a+b x) (d \tan (a+b x))^n \, dx=\frac {{\left (2 \, \cos \left (b x + a\right )^{2} + n + 1\right )} \left (\frac {d \sin \left (b x + a\right )}{\cos \left (b x + a\right )}\right )^{n} \sin \left (b x + a\right )}{{\left (b n^{2} + 4 \, b n + 3 \, b\right )} \cos \left (b x + a\right )^{3}} \]
(2*cos(b*x + a)^2 + n + 1)*(d*sin(b*x + a)/cos(b*x + a))^n*sin(b*x + a)/(( b*n^2 + 4*b*n + 3*b)*cos(b*x + a)^3)
\[ \int \sec ^4(a+b x) (d \tan (a+b x))^n \, dx=\int \left (d \tan {\left (a + b x \right )}\right )^{n} \sec ^{4}{\left (a + b x \right )}\, dx \]
Time = 0.28 (sec) , antiderivative size = 51, normalized size of antiderivative = 1.04 \[ \int \sec ^4(a+b x) (d \tan (a+b x))^n \, dx=\frac {\frac {d^{n} \tan \left (b x + a\right )^{n} \tan \left (b x + a\right )^{3}}{n + 3} + \frac {\left (d \tan \left (b x + a\right )\right )^{n + 1}}{d {\left (n + 1\right )}}}{b} \]
Exception generated. \[ \int \sec ^4(a+b x) (d \tan (a+b x))^n \, dx=\text {Exception raised: TypeError} \]
Exception raised: TypeError >> an error occurred running a Giac command:IN PUT:sage2:=int(sage0,sageVARx):;OUTPUT:Unable to divide, perhaps due to ro unding error%%%{1,[0,1,2,0,0]%%%}+%%%{1,[0,1,0,2,0]%%%} / %%%{1,[0,0,3,0,1 ]%%%} Err
Time = 4.54 (sec) , antiderivative size = 139, normalized size of antiderivative = 2.84 \[ \int \sec ^4(a+b x) (d \tan (a+b x))^n \, dx=-\frac {2\,{\left (-\frac {d\,\sin \left (2\,a+2\,b\,x\right )}{2\,{\sin \left (a+b\,x\right )}^2-2}\right )}^n\,\left (9\,\sin \left (2\,a+2\,b\,x\right )+6\,\sin \left (4\,a+4\,b\,x\right )+\sin \left (6\,a+6\,b\,x\right )+4\,n\,\sin \left (2\,a+2\,b\,x\right )+2\,n\,\sin \left (4\,a+4\,b\,x\right )\right )}{b\,\left (n^2+4\,n+3\right )\,\left (30\,{\sin \left (a+b\,x\right )}^2+12\,{\sin \left (2\,a+2\,b\,x\right )}^2+2\,{\sin \left (3\,a+3\,b\,x\right )}^2-32\right )} \]